package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * @author: afdiao
 * @Date：2020/3/7 13:34
 * @Description:
 */
@Table(name = "mst_admin")
@Data
@ApiModel(value = "后台人员对象",description = "可以使管理员或者是业务员")
public class Admin {
    @ApiModelProperty(value = "人员id",required = false)
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty(value = "用户名",required = true)
    @NotNull(message = "用户名不能为空")
    @Column(name = "name")
    private String name;

    @ApiModelProperty(value = "密码",required = true)
    @NotNull(message = "密码不能为空")
    @Column(name = "password")
    private String password;

    @Column(name = "role")
    private String role;

    @Column(name = "loginTime")
    private String loginTime;
}
